content = '''你好，世界！\n世界，你好！'''
with open('input.txt', 'w', encoding='utf-8') as f:
    f.write(content)